package com.buytouch.mobile.client.buy.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.buytouch.mobile.seller.mng.user.UserDao;

@Service
public class ClientUserServiceImpl implements ClientUserService{
	
//	@Resource
//	private UserDao userDao;
	
	@Autowired
	private SqlSession sqlSession;

	@Override
	public void insert_user_join(Map map) {
		ClientUserDao clientUserDao = sqlSession.getMapper(ClientUserDao.class);
		String test = "";
		clientUserDao.insert_user_join(map);
	}

	@Override
	public Map check_login(Map<String, String> map) { 
		ClientUserDao clientUserDao= sqlSession.getMapper(ClientUserDao.class);
		return clientUserDao.check_login(map);
		
	}
	
	@Override
	public List item_check_request_cate_nm(String store_id) {
		UserDao userDao = sqlSession.getMapper(UserDao.class);
		return userDao.item_check_request_cate_nm(store_id);
	}

	@Override
	public List item_check_request_item_list(String store_id, String code_cate) {
		UserDao userDao = sqlSession.getMapper(UserDao.class);
		return userDao.item_check_request_item_list(store_id,  code_cate);
	}

}
